package o;

import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.Canvas;
import com.huawei.appgallery.share.api.ShareBean;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant.KeyAndValue;
import o.cwj.i;

public class cxq extends cxn {
    private static String ˊ = "WeixinZoneShareHandler";

    protected String ʽ() {
        return "pengyou";
    }

    public boolean ˊ(ShareBean shareBean) {
        return super.ॱ(shareBean.ͺ(), 16, shareBean.ˏॱ());
    }

    protected int ॱॱ() {
        return 1;
    }

    protected int ʻ() {
        return cwj$b.ॱॱ;
    }

    protected int ˊ() {
        return i.ʼॱ;
    }

    protected String ᐝ() {
        return KeyAndValue.NUMBER_01;
    }

    protected Bitmap ॱ(Bitmap bitmap) {
        cwr.ॱ.ˋ(ˊ, "click share to weixin zone!");
        if (bitmap == null) {
            return null;
        }
        Bitmap copy = bitmap.copy(Config.ARGB_8888, true);
        Canvas canvas = new Canvas(copy);
        canvas.drawColor(ContentManager.getInstant().getContext().getResources().getColor(cwj$a.ˎ));
        canvas.drawBitmap(bitmap, 0.0f, 0.0f, null);
        return copy;
    }
}
